package jin.competition.jan11;

import java.util.ArrayList;

public class OnlineStore {
	String storeName;
	ArrayList<String> storeGoodsList=new ArrayList<String>();
	String customerName;
	ArrayList<String> shoppingList=new ArrayList<String>();
	public String getStoreName() {
		return storeName;
	}
	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}
	public ArrayList<String> getStoreGoodsList() {
		return storeGoodsList;
	}
	public void setStoreGoodsList(ArrayList<String> storeGoodsList) {
		this.storeGoodsList = storeGoodsList;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public ArrayList<String> getShoppingList() {
		return shoppingList;
	}
	public void setShoppingList(ArrayList<String> shoppingList) {
		this.shoppingList = shoppingList;
	}
	
	void addStoreGoodsList(String goodsName){
		
		this.storeGoodsList.add(goodsName);
		System.out.println(storeName+"可以添加"+goodsName+"到自己的商店");
	}
	
	void addShoppingList(String goodsName){
		
		this.shoppingList.add(goodsName);
		System.out.println(customerName+"可以到商店买"+goodsName);
	}
	

}



//2. 商户可以添加商品到自己的商店， 顾客可以到商店买东西。 用程序描述